package bm.com.project.server.sys.mapper;

import bm.com.project.server.sys.entity.BmSysUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BmSysUserMapper extends BaseMapper<BmSysUserEntity> {

    /**
     * 通过手机号获取用户信息
     * @param mobile
     * @return
     */
    BmSysUserEntity getUserByMobile(String mobile);

    /**
     * 通过账号密码获取用户信息
     * @param mobile
     * @param password
     * @return
     */
    BmSysUserEntity getUserByPassword(String mobile,String password);

    /**
     * 批量添加信息
     * @param users
     * @return
     */
    Boolean saveBatch(List<BmSysUserEntity> users);
}
